package com.lagou.edu.service;

import com.lagou.edu.pojo.AuthCode;
import com.lagou.edu.service.impl.EmailFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "lagou-service-email", fallback = EmailFeignFallback.class, path = "/api/email")
public interface EmailFeignClient {

    //
    @GetMapping(value = "/send/code" , consumes = "application/json")
    ModelMap sendEmail(@RequestBody AuthCode authCode);

}
